<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>安装 | 前言</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="gitbook/style.css">
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="./commands.html" />
    
    
    <link rel="prev" href="./index.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="0.1"
        data-chapter-title="安装"
        data-filepath="installation.md"
        data-basepath="."
        data-revision="Wed Apr 27 2016 12:23:04 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="./index.html">
                
                        <i class="fa fa-check"></i>
                        
                        GitBook
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="0.1" data-path="installation.html">
            
                
                    <a href="./installation.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.1.</b>
                        
                        安装
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="0.2" data-path="commands.html">
            
                
                    <a href="./commands.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.2.</b>
                        
                        命令
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="0.3" data-path="syntax.html">
            
                
                    <a href="./syntax.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.3.</b>
                        
                        语法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="0.4" data-path="settings.html">
            
                
                    <a href="./settings.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.4.</b>
                        
                        配置
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="0.5" data-path="plugins.html">
            
                
                    <a href="./plugins.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.5.</b>
                        
                        插件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="0.6" data-path="bookjson.html">
            
                
                    <a href="./bookjson.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.6.</b>
                        
                        json
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="./" >前言</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="gitbook&#x5B89;&#x88C5;">GitBook&#x5B89;&#x88C5;</h2>
<h3 id="&#x73AF;&#x5883;&#x8981;&#x6C42;">&#x73AF;&#x5883;&#x8981;&#x6C42;</h3>
<ul>
<li>NodeJS(v4.0.0&#x53CA;&#x4EE5;&#x4E0A;)</li>
</ul>
<h3 id="&#x901A;&#x8FC7;npm&#x5B89;&#x88C5;">&#x901A;&#x8FC7;NPM&#x5B89;&#x88C5;</h3>
<p>&#x8FD0;&#x884C;&#x4E0B;&#x9762;&#x7684;&#x547D;&#x4EE4;&#x8FDB;&#x884C;&#x5B89;&#x88C5;</p>
<pre><code class="lang-bash">npm install gitbook-cli -g
</code></pre>
<p>&#x5176;&#x4E2D;<code>gitbook-cli</code>&#x662F;gitbook&#x7684;&#x4E00;&#x4E2A;&#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;, &#x901A;&#x8FC7;&#x5B83;&#x53EF;&#x4EE5;&#x5728;&#x7535;&#x8111;&#x4E0A;&#x5B89;&#x88C5;&#x548C;&#x7BA1;&#x7406;gitbook&#x7684;&#x591A;&#x4E2A;&#x7248;&#x672C;.</p>
<h3 id="&#x7F16;&#x8F91;&#x4E66;&#x7C4D;">&#x7F16;&#x8F91;&#x4E66;&#x7C4D;</h3>
<p>gitbook &#x5B98;&#x65B9;&#x5DF2;&#x7ECF;&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E2A;&#x672C;&#x5730;&#x7684;<a href="https://www.gitbook.com/editor/osx" target="_blank">&#x7F16;&#x8F91;&#x5668;</a>, &#x4F7F;&#x7528;&#x5B83;&#x53EF;&#x4EE5;&#x65B9;&#x4FBF;&#x7684;&#x7F16;&#x5199;&#x4E66;&#x7C4D;(&#x4E0D;&#x9700;&#x8981;&#x624B;&#x52A8;&#x7684;&#x5199;SUMMARY.md), &#x5E76;&#x4E14;&#x652F;&#x6301;windows&#x3001;mac&#x3001;linux &#x4E09;&#x79CD;&#x5E73;&#x53F0;, &#x6240;&#x4EE5;&#x5F3A;&#x70C8;&#x5EFA;&#x8BAE;&#x4F7F;&#x7528;&#x7F16;&#x8F91;&#x5668;&#x7F16;&#x5199;&#x4E66;&#x7C4D;. </p>
<h3 id="&#x9884;&#x89C8;&#x4E66;&#x7C4D;">&#x9884;&#x89C8;&#x4E66;&#x7C4D;</h3>
<p>&#x4F7F;&#x7528;&#x4E0B;&#x5217;&#x547D;&#x4EE4;&#x4F1A;&#x8FD0;&#x884C;&#x4E00;&#x4E2A;&#x670D;&#x52A1;&#x5668;, &#x901A;&#x8FC7;<code>http://localhost:4000/</code>&#x53EF;&#x4EE5;&#x9884;&#x89C8;&#x4E66;&#x7C4D;</p>
<pre><code class="lang-bash">gitbook serve
</code></pre>
<p>&#x8FD0;&#x884C;&#x8BE5;&#x547D;&#x4EE4;&#x540E;&#x4F1A;&#x5728;&#x4E66;&#x7C4D;&#x7684;&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x751F;&#x6210;&#x4E00;&#x4E2A; <code>_book</code> &#x6587;&#x4EF6;&#x5939;, &#x91CC;&#x9762;&#x7684;&#x5185;&#x5BB9;&#x5373;&#x4E3A;&#x751F;&#x6210;&#x7684; html &#x6587;&#x4EF6;.
&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4E0B;&#x9762;&#x547D;&#x4EE4;&#x6765;&#x751F;&#x6210;&#x7F51;&#x9875;&#x800C;&#x4E0D;&#x5F00;&#x542F;&#x670D;&#x52A1;&#x5668;</p>
<pre><code class="lang-bash">gitbook build
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="./index.html" class="navigation navigation-prev " aria-label="Previous page: GitBook"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="./commands.html" class="navigation navigation-next " aria-label="Next page: 命令"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="gitbook/app.js"></script>

    
    <script src="gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
